package com.dragon.modules.yuegou.model.wallet;

import com.dragon.modules.yuegou.entity.wallet.CardScopeMerchantEntity;
import com.fasterxml.jackson.annotation.JsonView;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 悦卡使用范围：商户模型类
 * 
 * @author pbuilder generated
 * @date 2019-06-03 15:20:35
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class CardScopeMerchant extends CardScopeMerchantEntity {

	@ApiModelProperty("商户名称")
	private String merchantName;

	@ApiModelProperty("二级业态名称")
	private String typeSecondName;

	@ApiModelProperty("商圈名称")
	private String busdName;

	@ApiModelProperty("商户logo")
	private String merchantLogo;

	public String getMerchantName() {
		return merchantName;
	}

	public void setMerchantName(String merchantName) {
		this.merchantName = merchantName;
	}

	public String getMerchantLogo() {
		return merchantLogo;
	}

	public void setMerchantLogo(String merchantLogo) {
		this.merchantLogo = merchantLogo;
	}

	public String getTypeSecondName() {
		return typeSecondName;
	}

	public void setTypeSecondName(String typeSecondName) {
		this.typeSecondName = typeSecondName;
	}

	public String getBusdName() {
		return busdName;
	}

	public void setBusdName(String busdName) {
		this.busdName = busdName;
	}

	/**
	 * 构造一个空悦卡使用范围：商户模型对象
	 */
	public CardScopeMerchant(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个悦卡使用范围：商户模型对象
	 * 
	 * @param entity 实体对象
	 */
	public CardScopeMerchant(CardScopeMerchantEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个悦卡使用范围：商户模型对象
	 * 
	 * @param other 其它对象
	 */
	public CardScopeMerchant(CardScopeMerchant other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public CardScopeMerchant id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getCardTemplateId() {
    	return cardTemplateId;
    }

    /**
	 * 设置悦卡模板ID
	 * 
	 * @param cardTemplateId 悦卡模板ID
	 * @return 当前对象
	 */
    public CardScopeMerchant cardTemplateId(String cardTemplateId) {
    	this.cardTemplateId = cardTemplateId;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 * @return 当前对象
	 */
    public CardScopeMerchant busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getMerchantId() {
    	return merchantId;
    }

    /**
	 * 设置商户ID
	 * 
	 * @param merchantId 商户ID
	 * @return 当前对象
	 */
    public CardScopeMerchant merchantId(String merchantId) {
    	this.merchantId = merchantId;
    	return this;
    }

	@Override
	public Integer getDiscountRate() {
    	return discountRate;
    }

    /**
	 * 设置折扣率（0~100）
	 * 
	 * @param discountRate 折扣率（0~100）
	 * @return 当前对象
	 */
    public CardScopeMerchant discountRate(Integer discountRate) {
    	this.discountRate = discountRate;
    	return this;
    }

}
